
import request from '@/utils/request'
import { apiUrl } from '@/config/env'

export function getCoupon(data) {
  return request({
    url: `${apiUrl}/Coupon/getCoupon`,
    method: 'get',
    params: data
  })
}

export function saveCoupon(data) {
  return request({
    url: `${apiUrl}/Coupon/saveCoupon`,
    method: 'post',
    params: data
  })
}

export function grant(data) {
  return request({
    url: `${apiUrl}/Coupon/grant`,
    method: 'post',
    params: data
  })
}

export function searchWare(data) {
  return request({
    url: `${apiUrl}/Coupon/searchWare`,
    method: 'get',
    params: data
  })
}

